%{--<h1>${fieldValue(bean: entryInstance, field: 'title')}</h1>--}%
%{--${entryInstance.content}--}%
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <script type="text/javascript" src="${createLinkTo(dir: 'js/jquery', file: 'jquery-1.3.2.min.js')}"></script>
  <script type="text/javascript" src="${createLinkTo(dir: 'js/jquery', file: 'jquery.jeditable.js')}"></script>
  <g:javascript>
    $(document).ready(function(value) {
      $(".content").editable("http://localhost:8080/yuying/entry/ajaxupdate", {
        entryInstance: "this.'@id'.text()",
        type: "textarea",
        event :"dblclick",
        cancel: "取消",
        submit : "修改",
        indicator: "儲存中..."
      });
      $(".title").editable("http://localhost:8080/yuying/entry/ajaxupdate", {
        entryInstance: "${entryInstance.id}",
        type: "textarea",
        event :"dblclick",
        cancel: "取消",
        submit : "修改",
        indicator: "儲存中..."
      });
    });
  </g:javascript>
</head>
<body>
<h1 class="title">${entryInstance.title}</h1>
<div class="content" id="25">
  ${entryInstance.content}
</div>
<div class="content" id="26">
  ${entryInstance.content}
</div>
</body>
</html>